package service

import (
	"yun_image/dao"
	"yun_image/entity"
)

type HotService struct {
}

func (h *HotService) GetWeiboByWord(hots *[]entity.Hot, word string) error {
	var hotDao dao.HotDao
	err := hotDao.GetHotsByWord(hots, word)
	return err
}

func (h *HotService) GetWeiboByTime(hots *[]entity.Hot, startTime int64, endTime int64) error {
	var hotDao dao.HotDao
	err := hotDao.GetHotsByTime(hots, startTime, endTime)
	return err
}
func (h *HotService) GetBaiduByWord(hots *[]entity.BaiduHot, word string) error {
	var hotDao dao.HotDao
	err := hotDao.GetBaiduByWord(hots, word)
	return err
}

func (h *HotService) GetBaiduByTime(hots *[]entity.BaiduHot, startTime int64, endTime int64) error {
	var hotDao dao.HotDao
	err := hotDao.GetBaiduByTime(hots, startTime, endTime)
	return err
}
func (h *HotService) GetFengHuangByWord(hots *[]entity.FengHuangHot, word string) error {
	var hotDao dao.HotDao
	err := hotDao.GetFengHuangByWord(hots, word)
	return err
}

func (h *HotService) GetFengHuangByTime(hots *[]entity.FengHuangHot, startTime int64, endTime int64) error {
	var hotDao dao.HotDao
	err := hotDao.GetFengHuangByTime(hots, startTime, endTime)
	return err
}

func (h *HotService) GetBiliByWord(hots *[]entity.BiliHot, word string) error {
	var hotDao dao.HotDao
	err := hotDao.GetBiliByWord(hots, word)
	return err
}

func (h *HotService) GetBiliByTime(hots *[]entity.BiliHot, startTime int64, endTime int64) error {
	var hotDao dao.HotDao
	err := hotDao.GetBiliByTime(hots, startTime, endTime)
	return err
}
